package com.itcast.springboot.waste_recovery.controller;


import com.itcast.springboot.waste_recovery.common.CommonResult;
import com.itcast.springboot.waste_recovery.common.CommonResultCode;
import com.itcast.springboot.waste_recovery.domain.AboutUs;
import com.itcast.springboot.waste_recovery.service.AboutUsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 关于我们 前端控制器
 * </p>
 *
 * @author 小破烂
 * @since 2020-08-19
 */
@RestController
@RequestMapping("/waste_recovery/about-us")
@Slf4j
@Api(tags = "关于我们类接口")
public class AboutUsController {

    @Resource(name = "aboutUsServiceImpl")
    AboutUsService aboutUsService;

    @GetMapping("customer")
    @ApiOperation(value = "关于我们")
    public CommonResult getAboutUs(){
        AboutUs aboutUs = aboutUsService.getAboutUs();
        return new CommonResult(CommonResultCode.CommonSuccess, aboutUs);
    }


}

